home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / ppp-faq.part3 < prev    next >
Encoding:
Internet Message Format  |  1994-05-18  |  18.1 KB

  1. Subject: comp.protocols.ppp part3 of 8 of frequently wanted information
  2. Newsgroups: comp.protocols.ppp,news.answers,comp.answers
  3. From: ignatios@cs.uni-bonn.de (Ignatios Souvatzis)
  4. Date: 16 May 1994 10:49:38 GMT
  5.  
  6. Archive-name: ppp-faq/part3
  7. Version: $Revision: 1.1 $
  8. Last-modified: $Date: 93/08/23 19:19:15 $
  9. URL: http://cs.uni-bonn.de/ppp/part3.html
  10.    Read on here.
  11.    
  12.                      3. HOW TO (CONFIGURATION RECIPES)
  13.                                      
  14.       
  15.       complain about missing or incorrect information in the FAQ list
  16.       
  17.        connect a single host to a network without needing a new subnet.
  18.       
  19.       
  20.       configure free ppp for sun to interoperate with MacPPP 1.0
  21.       
  22.       
  23.       get SCO TCP 1.2 to connect to Ethernet LANs by a PPP link
  24.       
  25.        use PPP through a X.25 PAD
  26.       
  27.        use SunLINK PPP 1.0 to a CISCO
  28.       through a sync line
  29.       
  30.        use MacPPP 2.0.1 on non-US
  31.       System 6 MACs
  32.       
  33. 3.0 complain about missing or incorrect information in the FAQ list
  34.  
  35.    E-mail to
  36.    
  37.                         ignatios@theory.cs.uni-bonn.de (Ignatios Souvatzis)
  38.                                                                            
  39.    and add information I'll need to think about it. That is:
  40.    
  41.        In case of incorrect information, send me the correct information
  42.       and the source of it.
  43.       
  44.        In case of missing information, send me the information which is
  45.       missing and the source of it.
  46.       
  47. 3.1 connect a single host to a network without needing a new subnet.
  48.  
  49.    If you have only one single machine on the other side, the easiest way
  50.    is to give it a IP address belonging to the local ethernet/IP subnet,
  51.    and to tell the ppp gateway machine to advertise (proxy arp) its own
  52.    ethernet address as the other machines'. Works like a charm here. Of
  53.    course, for a large group or complicated network on the other side, you
  54.    would get more management problems.
  55.    
  56.    On the gateway do:
  57.    
  58.  
  59. arp -s othermachinesipaddress myownethernetaddress permanent public
  60. ifconfig pppNUMBER myipaddress othermachinesipaddress [other params] up
  61.  
  62.    on remote machine:
  63.    
  64.  
  65. ifconfig pppNUMBER gatewaysipaddress [other params] up
  66. route add default gatewaysipaddress 1
  67.  
  68.    pppNUMBER might be spelled as dpNUMBER for dialup IP.
  69.    
  70.    Of course, if you use routeing daemons, you could also propagate the
  71.    route via routed / gated etc. to other machines, but it's more painful
  72.    because every machine has to do it (and might choose not to do it), and
  73.    every machine doing IP on a Ethernet HAS to talk arp.
  74.    
  75.    On intermittently connected demand-dialed links, you may need to edit
  76.    /etc/gateways to define the destination of the PPP or SLIP connection as
  77.    a "passive" link.  Otherwise, routed will remove routes from the
  78.    kernel's routing table that use that link, because it won't hear RIPs
  79.    coming from hosts or routers across the wire.  Since it doesn't hear
  80.    anything from hosts or routers on the far side of the wire, routed
  81.    assumes that the link is dead forever.
  82.    
  83.                                ignatios@cs.uni-bonn.de (Ignatios Souvatzis)
  84.                                                                            
  85. 3.2 configure KA9Q PPP and it's Unix counterpart
  86.  
  87.  
  88. Newsgroups: comp.protocols.ppp
  89. From: kim@MorningStar.Com (Kim Toms)
  90. Subject: Re: PPP for DOS? (good info for FAQ)
  91. Date: Wed, 9 Dec 1992 06:26:28 GMT
  92.  
  93.    I have been able to use the ka9q software on my PC to call my Suns at
  94.    work.  This is available from merit.edu:/pub/ppp/ka9q.zip. I had to tell
  95.    our Sun product [that would be Morning Star PPP, see below. I.S.]
  96.    "nolqm" in order to prevent it from hanging up because of an lqm
  97.    failure, but other than that, I have had no trouble.
  98.    
  99.    Below, I include the configuration I use on my pc.  I unpacked the ka9q
  100.    distribution into \ka9q.  All the configuration files are located there.
  101.    
  102.    
  103.    I have also been able to use the NCSA telnet packet driver, however, I
  104.    could not use ftp with that, so I gave it up some months ago.
  105.    
  106.    Here's what I use on the PC:
  107.    
  108.    In a file called "doit2.bat":
  109.    
  110.  
  111. net -d \ka9q dialup.net
  112.  
  113.    In a file called "dialup.net":
  114.    
  115.  
  116. ip address 137.175.2.42
  117. attach asy 0x3f8 4 ppp pp0 1024 256 9600
  118. dialer pp0 dialup.ppp
  119. ppp pp0 trace 2
  120. ppp pp0 quick
  121. ppp pp0 lcp open
  122. ppp pp0 ipcp open
  123. route add default pp0
  124. ip ttl 32
  125. tcp mss 1460
  126. tcp window 2920
  127. domain addserver 137.175.2.11
  128. domain suffix MorningStar.Com
  129. domain cache clean on
  130. start echo
  131. start discard
  132. start telnet
  133. start ftp
  134. start finger
  135. start ttylink
  136.  
  137.    In a file called "dialup.ppp":
  138.    
  139.  
  140. control down
  141. wait 1000
  142. control up
  143. wait 1000
  144. wait 2000
  145. send "at\r"
  146. wait 3000 "OK"
  147. send "atdt4515016\r"
  148. wait 60000 "login: "
  149. send "<username>\r"
  150. wait 5000 "word:"
  151. wait 1000
  152. send "<password>\r"
  153.  
  154.   3.2.2 CONFIGURE KA9Q PPP (WITH NEW DIALER) AND IT'S UNIX COUNTERPART
  155.   
  156.  
  157. Date: Wed, 3 Feb 93 17:18:02 +0100
  158. From: Swa.Frantzen@cs.kuleuven.ac.be (Swa Frantzen)
  159. To: ignatios@cs.uni-bonn.de (Ignatios Souvatzis)
  160. Subject: Re: comp.protocols.ppp frequently wanted information
  161.  
  162.    I'm using ka9q for slip dialup. (ppp will follow soon) Being a novice to
  163.    it, I relied heavily on the ppp documentation the frequently wanted
  164.    information posting provides.
  165.    
  166.    One thing has changed (somewhere) in the way the dailer command works.
  167.    The syntax has changed and the file(s) it uses have changed to.
  168.    
  169.    I got my ka9q from simtel20 (actually a mirror: oak.oakland.edu)  -> the
  170.    file with the source was name s920603.zip, the executable e920603.zip.
  171.    All the documentation I could find was at least a year older !
  172.    
  173.    After sniffing through the sources, this is what I came up with:
  174.    
  175.    In a file called "dialup.net":
  176.    
  177.  
  178. ...
  179. dialer <interface> <timeout> <up_script> <down_script>
  180. ...
  181.  
  182.    eg:
  183.    
  184.  
  185. dial pp0 1000 dial.up dial.dwn
  186.  
  187.    In a file called "dialup.dwn";
  188.    
  189.  
  190. control down
  191.  
  192.    In a file called "dialup.up";
  193.    
  194.  
  195. control up
  196. wait 100
  197. send "at\r"
  198. wait 3000 "OK"
  199. send "atdt<number>\r"
  200. wait 90000 "ogin:"
  201. send "<username>\r"
  202. wait 5000 "word:"
  203. wait 100
  204. send "<password>\r"
  205.  
  206.    This will cause call on demand ->
  207.    
  208.    If the link is idle (for some time), the thing will hang up If you need
  209.    the link the link will be established I put in a bigger wait for the
  210.    login prompt as it takes a rather long time to synchonise using V32 and
  211.    V32bis modems.
  212.    
  213.    Since I had to go through the sources to find it out, I figure others
  214.    will be intersted in it too.
  215.    
  216.   3.2.3 CONFIGURE JNOS
  217.   
  218.    I have jnos1.08 up and running. [that is,  'version 911229 (WG7J
  219.    v1.08)'].   For a sample configuration and demonstration of operation,
  220.    get the  configuration and  executable you can ftp from
  221.    speckled.mpifr-bonn.mpg.de, user ftp, directory /pub/rhein.de or
  222.    /pub/incoming.
  223.    
  224.                                ignatios@cs.uni-bonn.de (Ignatios Souvatzis)
  225.                                                                            
  226. 3.3 configure NCSA with the merit ppp packet driver and its  unix
  227. counterpart
  228.  
  229.    I had at least partial success using the parameters, to the public ppp
  230.    for SUNOS (dp-2.3, but I suspect any of dp-2.1 or dp-2.2* or
  231.    pppd-1.01beta or ppp-1.1 would have the same behaviour) -ac -pc vjmode
  232.    draft. The latter would be called in ppp-1.1 (and up) 'vjmode rfc1331'.
  233.    
  234.                                ignatios@cs.uni-bonn.de (Ignatios Souvatzis)
  235.                                                                            
  236. 3.4 work BOOTP over protocols such as SLIP or PPP
  237.  
  238.  
  239. Newsgroups: comp.protocols.ppp
  240. From: johnson@tigger.jvnc.net (Steven L. Johnson)
  241. Subject: Re: Tech?: BOOTP over SLIP or PPP
  242. Date: Wed, 2 Dec 1992 03:14:37 GMT
  243.  
  244.    [Somebody on the net] writes:
  245.    
  246.     Does anybody know if there is a description of how to work BOOTP over
  247.    protocols such as SLIP or PPP. It seems this should work but the problem
  248.    is that there is a field in the BOOTP header that contains the physical
  249.    layer type, and these numbers are defined as the hardware types for ARP.
  250.     Since SLIP and PPP do not use ARP, they do not have numbers.I haven't
  251.    looked very far, and would appreciate a pointer to any previous work or
  252.    concensus.  I've used a type 0 but only with a cisco terminal server.  I
  253.    don't know if this causes problems on other implementations.
  254.    
  255.    The second problem is that the BOOTP header also contains a field for
  256.    the physical layer address (i.e. Ethernet address). PPP and SLIP do not
  257.    have an physical layer addresses. What does the BOOTP server have to
  258.    base it's IP address suggestion on?  It's my understanding that PPP can
  259.    itself negotiate the IP address and that this is the preferred method.
  260.    If the IP address is included in the bootp request then the remaining
  261.    configuration is done based on that IP address and not the hardware
  262.    address.  With SLIP there isn't this option, so the IP address must be
  263.    assigned by knowing the physical port on which the request was received.
  264.     Again, I used an address of 0 (with a address length of 0, I think) and
  265.    this didn't seem to cause a problem.
  266.    
  267.    On a terminal server that contained only a minimal implementation of
  268.    bootp, it was necessary to send two requests.  The first request was
  269.    satisfied by the terminal server and configured only the IP address.  A
  270.    subsequent request (that contained the IP address provided by the first
  271.    request) was forwarded by the terminal server to a bootp server on the
  272.    ethernet and provided the rest of the configuration from a standard
  273.    bootptab.
  274.    
  275.                                                                      -Steve
  276.                                                                            
  277. 3.5 configure free ppp for sun to interoperate with MacPPP 1.0
  278.  
  279.  
  280. From: guy@world.std.com (Guy K Hillyer)
  281. Comments-by: Ignatios Souvatzis, marked with [comments... I.S.]
  282. Subject: Success with MacPPP
  283. Date: Wed, 20 Jan 1993 02:02:08 GMT
  284.  
  285.    After many travails, I finally got MacPPP to work for me.  This is the
  286.    story of how I got it to work.  This account is purely anecdotal.  I
  287.    don't claim to know what is the best configuration, just what worked for
  288.    me.
  289.    
  290.    I submit this for the benefit of other poor suckers who might otherwise
  291.    spend days getting a Mac/Sun PPP link to work, like I did. I'm a happy
  292.    camper now, and thanks to Larry Blunk @ merit.edu for making his
  293.    implementation freely available.  Now all I need is a T1 line to my
  294.    house and I'll be all set.
  295.    
  296.    [I'm not sure MacPPP works on T1 lines, I'm pretty sure the Perkins et
  297.    al.  PPP doesn't work over T1 lines. I.S.]
  298.    
  299.    After working with the beta release for a while, I picked up the latest
  300.    and greatest MacPPP at merit.edu.  The file is named
  301.    /pub/ppp/macppp1.0.sit.hqx.  I don't think there's any big difference
  302.    between that and the beta version, but the docs did have two or three
  303.    new sentences that helped to clarify matters.
  304.    
  305.    The ppp I'm using on the UNIX side is the one identified as
  306.    `Perkins/Clements/Fox/Christy PPP for SunOS' in the comp.protocols.ppp
  307.    FAQ.  During the course of debugging my connection, I installed the
  308.    package identified in that document as dp-2.2, but it behaved in exactly
  309.    the same way as the other one did with regard to the problems I was
  310.    having, so I only tried it briefly.  It has some more advanced
  311.    capabilities so I may switch to it in the future, but for now I'm just
  312.    glad to have a working configuration.
  313.    
  314.    Mac configuration:
  315.    
  316.        One mistake I made was ignoring the point made in the MacPPP docs
  317.     about configuring MacTCP for server addressing.  I thought that
  318.    "server addressing" implied that the mac would get its IP address
  319.    from some kind of server on my network, using RARP or something     like
  320.    that.  I thought that didn't make sense in my situation, so I
  321.    configured MacTCP for manual addressing.  In fact, I now believe
  322.    that "server addressing" means that TCP gets the address from     the IP
  323.    layer.  I'm not an ISO networking model savant, so this
  324.    
  325.        [must be wrong... the IP layer gets its address from the PPP layer,
  326.        which can do an address negotiation.]
  327.    
  328.        notion should be taken with a grain of salt.
  329.    
  330.        I also set MacTCP to have a "class C" network address.  I think
  331.    this only matters for broadcast packets, because it sets the
  332.    netmask.  Again, I'm treading on thin ice here.
  333.    
  334.        I set the IP addresses in the MacPPP control panel's IPCP
  335.    configuration window.  This probably isn't necessary, but I     wanted
  336.    to make sure that I got a particular address.  If you set     the
  337.    addresses on the Mac side, you'll want to specify the     addresses and
  338.    disable IP address negotiation on the UNIX side     ("-ip" option to
  339.    ppp).
  340.    
  341.        I first got things working with VJ header compression disabled on
  342.     both sides.  You may want to try it this way if you have any
  343.    trouble.  This is set in the IPCP window.  If you disable VJ     header
  344.    compression on the Mac side, you'll want to disable it on     the UNIX
  345.    side as well ("-vj" option to ppp).
  346.    
  347.        [You probably need only to set it to 'draft'. The configuration
  348.    negotiation should do the rest. The only reason you need a 'vjmode'
  349.    option is that the format of the configuration option has changed and
  350.      the older ones don't understand the format of the aug91draft or
  351.    rfc1331 ones (which should be the same) I.S.]
  352.    
  353.        Once I got things working I turned on VJ header compression.  It
  354.    only worked for me if I selected "draft" mode on the UNIX side
  355.    ("vjmode draft" option to ppp).
  356.    
  357.    Sun configuration:
  358.    
  359.        I configure the ppp interface like this:
  360.    
  361.  
  362.         ifconfig ppp0 <Sun's IP addr> <Mac's IP addr> netmask 0xffffff00 do
  363. wn
  364.  
  365.    Then I start ppp like this:
  366.    
  367.  
  368.         ppp -p vjmode draft -ip <Sun's IP addr>:<Mac's IP addr>
  369.  
  370.    [which is also about the configuration of dp-2.x, on the login line.
  371.     You have to specify PPP_OPTIONS=vjmode,draft in the configuration file
  372.        for the network interface used by the mac. For ppp-1.1/2.tar.Z, use
  373.        'vjmode rfc1331' I.S.]
  374.    
  375.        The "-p" means passive, so the Sun waits for the Mac to start the
  376.     handshaking.  My experience was that without -p, there was a very
  377.    brief window during which the Mac could enter the negotiation, and
  378.    if it missed window, then all was lost.
  379.    
  380.        "vjmode draft" means to use the new version of negotiation
  381.    specified in the August 1991 Draft RFC for IPCP.  This is     apparently
  382.    the only version MacPPP knows how to deal with.  If     you've disabled
  383.    VJ header compression on the Mac, you should give     "-vj" instead.
  384.    
  385.        "-ip" disables IP address negotiation.  It probably would work
  386.    fine without this; I just haven't tried it that way.
  387.    
  388. 3.6 get SCO TCP 1.2 to connect to Ethernet LANs by a PPP link
  389.  
  390.  
  391. From: bob@MorningStar.Com (Bob Sutterfield)
  392. Subject: Re: PPP on SCO between different networks
  393.  
  394.    In article  uaa1006@dircon.co.uk (Peter Miles) writes:
  395.    
  396.       I need to set up a UNIX system which is on an ethernet LAN (with
  397.    its own IP address), so it can call up a PPP link to another    network,
  398.    and use a different IP address on the remote network. There's a bug in
  399.    SCO TCP 1.2 (but not in 1.1.3) that prevents this scenario with SCO's
  400.    PPP, and with any other PPP or SLIP software you might try to use on
  401.    your SCO system.  You can get the fix from
  402.    ftp.morningstar.com:pub/tools/SCO-route-fix, or through SCO's normal
  403.    support channels.
  404.    
  405. 3.7 use PPP through a X.25 PAD
  406.  
  407.  
  408. From: unrza3@cd4680fs.rrze.uni-erlangen.de (Markus Kuhn)
  409. Subject: Re: PPP or SLIP through PAD (X.29/X.25)
  410. Date: Mon, 5 Apr 1993 19:30:17 +0200
  411. Organization: Regionales Rechenzentrum Erlangen, Germany
  412.  
  413.    Does anybody have experience with "tunneling" PPP and SLIP through the
  414.    PAD-service (X.29 over X.25)? What I want is to let people dial up their
  415.    PAD-service and send their PPP/SLIP packets across the X.25 network into
  416.    the PAD-login of my UNIX-machine.  This should be possible, but I guess
  417.    the PAD-parameter configuration is critical?? Yes, that's of course
  418.    possible, because that's the way I use PPP. Use the PAD parameters for
  419.    the following settings:
  420.    
  421.        no escape character 1:0
  422.       
  423.        local echo off 2:0
  424.       
  425.        flow/control: RTS/CTS 5:2 (this is perhaps not a standard X.3
  426.       parameter)
  427.       
  428.        PAD should not react on XON/XOFF signals 12:0
  429.       
  430.    Other important values might be 3:0 4:1 9:0 10:0 13:0 14:0 15:0.
  431.    
  432.    You need a PAD that supports CTS/RTS flow control, because I don't know
  433.    about PPP software that supports XON/XOFF (although this would be
  434.    possible with the right async map).
  435.    
  436.                                                                      Markus
  437.                                                                            
  438. 3.8 use SunLINK PPP 1.0 to a CISCO through a sync line
  439.  
  440.    To connect successfully a Sun running 4.1.x and Sunlink PPP 1.0 to a
  441.    Cisco, you have to get patch 100941-02. Once it it installed, everything
  442.    works smoothly, as written in the documentation!
  443.    
  444.    My sun is an SS2, running 4.1.2 (sun4c architecture). We have a
  445.    'Transfix' digital leased line. That is: synchronous serial line,
  446.    64kbps.
  447.    
  448.    The problem without the patch is that everything seems to be OK, except
  449.    that the MTU given by a 'netstat -in' on device ppp0 is set to 0.
  450.    
  451.                                           -- Alain Mellan <amellan@acri.fr>
  452.                                                                            
  453. 3.9 use MacPPP 2.0.1 on non-US System 6 Macintoshes
  454.  
  455.    The current MacPPP Version (2.0.1) works on System 6 only if the system
  456.    folder is called "System Folder". On non-US systems (e.g. German
  457.    systems, where it is called "Systemordner"), MacPPP doesn't find some
  458.    file it needs. On System 7 Macs this problem isn't there. The workaround
  459.    is, to rename the system folder to "System Folder". Other programs will
  460.    ask the system, how the system folder is named, and continue to work.
  461.    Thanks to hn277pk@unidui.uni-duisburg.de (Peter Koch) for summarizing
  462.    this information to me, who never used a Macintosh (with the exception
  463.    of playing Shufflepack CafĂ© once). *** Go back here.  To the top page
  464.    here. Read on here.
  465.    
  466.    
  467. -- 
  468. -- 
  469.     Ignatios Souvatzis
  470. -
  471. Solaris 2.1:  it's slow, needs 200M of disk space and comes without C compiler,
  472. which makes it remarkably close to MS-Windows. oleg@gd.cs.csufresno.edu
  473.  
  474.